package com.tjy.service.impl;

import com.tjy.bean.MobilePhone;
import com.tjy.bean.MobileType;
import com.tjy.dao.IIndexDao;
import com.tjy.service.IIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class IIndexServiceImpl implements IIndexService {
    @Autowired
    private IIndexDao iIndexDao;
    @Override
    public List<MobileType> selectMobileType() {
        return iIndexDao.selectMobileType();
    }

    @Override
    public List<MobilePhone> selectOneTypePhone(Integer id) {
        return iIndexDao.selectOneTypePhone(id);
    }
}
